/**
 * Created by zqyybj2 on 2017/1/4.
 */
$(function(){
    var lis=$('.order_tab li');
    var tabCon=$('.tabCont');
    lis.on('click',function(){
        for(var i= 0;i<lis.length;i++){
            $(lis).attr('class','');
        }
        var index=$(this).index();
        $(this).attr('class','on');
    })
    $("#tableSort").bootstrapTable({
        striped: true,
        pagination: true,
        singleSelect: false,
        pageSize: 6,
        columns: [
            {
                field: 'data',
                title: '日期',
                width:200,
            }, {
                field: 'income',
                title: '收入/支出',
                width:150,
            }, {
                field: 'Explain',
                title: '详细说明',
                width:400,
            }],
        data:[{
            data: '2016-12-16 09:58:21',
            income: '<span class="red">-17</span>',
            Explain: '购物送积分(商品号:1537987)'
        }, {
            data: '2016-12-16 09:58:21',
            income: '<span class="green">+17</span>',
            Explain: '购物送积分(商品号:1537987)'
        },{
            data: '2016-12-16 09:58:21',
            income: '<span class="green">+129</span>',
            Explain: '购物送积分(商品号:1537987)'
        },{
            data: '2016-12-16 09:58:21',
            income: '<span class="green">+129</span>',
            Explain: '购物送积分(商品号:1537987)'
        },{
            data: '2016-12-16 09:58:21',
            income: '<span class="green">+129</span>',
            Explain: '购物送积分(商品号:1537987)'
        },{
            data: '2016-12-16 09:58:21',
            income: '<span class="green">+129</span>',
            Explain: '购物送积分(商品号:1537987)'
        },{
            data: '2016-12-16 09:58:21',
            income: '<span class="green">+129</span>',
            Explain: '购物送积分(商品号:1537987)'
        },{
            data: '2016-12-16 09:58:21',
            income: '<span class="green">+129</span>',
            Explain: '购物送积分(商品号:1537987)'
        }],
    })
})
